package com.tubi.testIO;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class ioDemo2 {
    public static void main(String[] args) throws IOException {
//        字节流写数据3中方式
        FileOutputStream fos = new FileOutputStream("/Users/ronglei/Desktop/学习/a.txt");
//        创建一个byte 数组
//        byte[] bys = {99,98,87};
//        fos.write(bys);

        byte[] ba = {99,32,45,56,67,68};
        fos.write(ba, 1, 2);

        fos.close();

    }
}
